package com.ophiux.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ophiux.wechat.model.dto.OphiuxProblemAggregationDTO;
import com.ophiux.wechat.model.entity.OphiuxProblem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @desc:问题表OphiuxProblemMapper
 * @autor: hhl 
 * @date: 2023-07-19 14:55:40<br>
 */
@Mapper
public interface OphiuxProblemMapper extends BaseMapper<OphiuxProblem> {

    @Select("select * from ophiux_problem where use_type=#{useType} and status=1")
    List<OphiuxProblemAggregationDTO> getProblemList(@Param("useType") Integer useType);

}